package com.botu.content.service.impl;

import com.botu.content.entity.Content;
import com.botu.content.mapper.ContentMapper;
import com.botu.content.service.IContentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hanzeyao
 * @since 2020-02-15
 */
@Service
public class ContentServiceImpl extends ServiceImpl<ContentMapper, Content> implements IContentService {

    /**
     * 查看所有内容
     * @return
     */
    @Override
    public List<Content> selectAll() {
        return new Content().selectAll();
    }

    @Override
    public Content seleceById(String id) {
        return new Content().selectById(id);
    }
}
